package com.his.drugstage.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author:lym
 * @createTime:2023年7月2日09点44分
 * @version v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Prescription implements Serializable {
    private Integer id;              //
    private Integer registerId;      //挂号id   外键
    private Integer drugId;          //药品id   外键
    private String drugUsage;        //用法用量和频次
    private Integer drugNumber;      //数量
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date creationTime;     //开立时间
    private String drugState;        //状态(已开立、已缴费、已发药、已退药、已退费)


}
